From: Magdalen Berns Date: Wed, 5 Feb 2014 18:21:42 +0000 (+0000) Subject: Magnifier: take x,y from center of focused widget X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2832 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=583d2cb4e468d26bfdb2b8f8fb201370379c6ec4;p=gnome-shell.git Magnifier: take x,y from center of focused widget bug https://bugzilla.gnome.org/show_bug.cgi?id=720951 --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 5c79acbd4..2a6ac3868 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -736,7 +736,8 @@ const ZoomRegion = new Lang.Class({ if (!component || event.detail1 != 1) return; let extents = component.get_extents(Atspi.CoordType.SCREEN); - [this._xFocus, this._yFocus] = [extents.x, extents.y] + [this._xFocus, this._yFocus] = [extents.x + (extents.width / 2), + extents.y + (extents.height / 2)]; this._centerFromFocusPosition(); },